package com.tsu.mall.order.service;

import com.tsu.mall.common.VO.CartWaresVO;
import com.tsu.mall.order.entity.Cart;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tttttt
 * @since 2023-04-05
 */
public interface ICartService extends IService<Cart> {

    void addCart(Integer waresId, Integer waresNum,String memberWaresColor,String memberWaresVersion);

    List<CartWaresVO> selectCurrentMemberWaresInfo(Integer currentMemberId);

    void doUpdate(Integer currentMemberId, Integer currentWaresId, Integer amount, String currentColor, String currentVersion);

    Integer selectCartWaresNumberById(Integer id);
}
